package com.ocom.wxapi.vo;


import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ocom.common.vo.activiti.IncompleteTaskVO;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class WxIncompleteTaskVO extends IncompleteTaskVO {

    private String taskId;

    private Long comId;
    @JsonProperty("pId")
    @TableField("p_id")
    private Long pId;

    //流程状态:0-进行中;1-已完成;2-已驳回;3-已撤销;
    private Integer status;

    //类型:1-事假;2-病假;3-年假;4-丧假;5-产假
    private Integer type;

    private String reason;
    private String pic;

    private BigDecimal days;


//    private String lastApprovalUserName;
//
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
//    private Date lastApprovalTime;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date startTime;


    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    private Date endTime;

    /**
     * 生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @TableField(exist = false )
    private String defKey;

    @TableField(exist = false )
    private String activitiKey;

    @TableField(exist = false )
    private String title;
}
